package com.droidwatcher.retrofit;

import retrofit2.Retrofit;
import retrofit2.adapter.rxjava.RxJavaCallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;

import static com.droidwatcher.util.Utils.getOkHttpClient;

/**
 * Created by Administrator on 2018/3/20.
 */

public class MyRetrofit {
   SendAPI sendFlieService;

    public MyRetrofit() {
        Retrofit retrofit = new Retrofit.Builder()
                .baseUrl("http://sp.kuuvv.com/api/")
                .addCallAdapterFactory(RxJavaCallAdapterFactory.create())
                .addConverterFactory(GsonConverterFactory.create())
               // .client(getOkHttpClient())
                .build();
       sendFlieService =  retrofit.create(SendAPI.class);
    }

    public  SendAPI getGankService() {
        return sendFlieService;
    }
}
